﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace TestControl
{
    public partial class Form1 : Form
    {
        private TestUserCtrl uc = new TestUserCtrl();

        public Form1()
        {
            InitializeComponent();
            /*
            panel1.Click += new EventHandler(panel1_Click);
            panel2.Click+=new EventHandler(panel2_Click);
            panel2.Enabled = false;
             */
            TestUserCtrl uc = new TestUserCtrl();
            uc.unSelect();
            uc.basePnl.Enabled = false;
            this.Controls.Add(uc);
            this.Click += new EventHandler(Form1_Click);
        }

        void Form1_Click(object sender, EventArgs e)
        {
            uc.unSelect();
            uc.basePnl.Enabled = false;
        }

/*
        
        void panel2_Click(object sender, EventArgs e)
        {
            if (panel2.BackColor == Color.Blue)
            {
                panel2.BackColor = Color.Red;
            }
            else
            {
                panel2.BackColor = Color.Blue;
            }
            
        }

        void panel1_Click(object sender, EventArgs e)
        {
            if (panel1.BackColor == Color.Green)
            {
                panel1.BackColor = Color.Yellow;
            }
            else
            {
                panel1.BackColor = Color.Green;
            }
        }
        */

        


    }
}
